php get first 10 elements of array

74

$sliced_array = array_slice($array, 0, 5)
array_values($array)[0];
reset($array);

Comments

Submit
0 Comments